package com.atguigu.product.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author fhs
 * Create by 2025/6/23 10:29
 */
@Configuration
public class ProductServiceConfig {

    //给他放一个RestTemplate 这样就不用new了，直接从容器中获取
    @Bean
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }
}
